#ifndef __MyMessageBox_H__
#define __MyMessageBox_H__
#include "cocos2d.h"
#include "ui/CocosGUI.h"
USING_NS_CC;
enum state
{
	OK=0,
	CANCEL,
	UNKNOWN 
};
class MyMessageBox :public Layer {
public:
	virtual bool init(std::string message, std::string title,Node* node,const std::function<void(Ref*)> &callback1, const std::function<void(Ref*)> &callback2);
	static MyMessageBox* create(std::string message, std::string title,Node* node,const std::function<void(Ref*)> &callback1, const std::function<void(Ref*)> &callback2);
	virtual bool init( Node* node, const std::function<void(Ref*)> &callback1, const std::function<void(Ref*)> &callback2);
	static MyMessageBox* create( Node* node, const std::function<void(Ref*)> &callback1, const std::function<void(Ref*)> &callback2);
public:
	ui::Button* ok_btn;
	ui::Button* cancel_btn;
	static int state;
};
#endif
